﻿#ifndef HEARTDATA_H
#define HEARTDATA_H
#include<QString>
#include<QJsonArray>
class HeartData
{
public:
    HeartData();
    HeartData(HeartData const&tmp);
    //通道名称
    void setChannelName(QString name);
    QString getChannelName()const;
    //数据数组
    void setDataArr(QJsonArray dataArr);
    QJsonArray getDataArr()const;
    void addData(int data);//用于添加新数据点

private:
    QString m_channelName;//通道名称
    QJsonArray m_dataArr;//心电图数据组
};

#endif // HEARTDATA_H
